<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="base :: header (title='工序入库审核')" />
<link th:href="@{plugins/common/css/basemessage.css}" rel="stylesheet" />
<link th:href="@{css/WareHouse/outsourcing.css}" rel="stylesheet" />
<body class="">
	<div class="main-content blank_bg">
		<div>
			<div>
				<div class="row" style="margin: 10px;">
					<div class="">
						<div class="" >
							<div style="float:left">
								<span class="spanCss">入库单号：</span> 
								<input type="text" id="fCode" name="fCode" class="form-control clean_C" style="width: 100px; margin-right: 10px;" autocomplete="off" /> 
								<span class="spanCss">任务单号：</span> 
								<input type="text" id="fBillNo" name="fBillNo" class="form-control clean_C" style="width: 100px; margin-right: 10px;" autocomplete="off" /> 
								<span class="spanCss">产品代码：</span> 
								<input type="text" id="fNumber" name="fNumber" class="form-control clean_C" style="width: 100px; margin-right: 10px;" autocomplete="off" /> 
								<span class="spanCss">操作工卡号：</span> 
								<input type="text" id="fWorker" name="fWorker" class="form-control clean_C" style="width: 70px; margin-right: 10px;" autocomplete="off" />
								<span class="spanCss">入库日期：</span> 
								<input type="text" id="startTime" name="startTime" class="form-control clean_C" style="width: 90px;" autocomplete="off" />
								<span>—</span>
								<input type="text" id="endTime" name="endTime" class="form-control clean_C" style="width: 90px; margin-right: 10px;" autocomplete="off" />
								<!-- <span class="spanCss">仓库审核日期：</span> 
								<input type="text" id="fCheckStartTime" name="fCheckStartTime" class="form-control clean_C" style="width: 90px;" />
								<span>—</span>
								<input type="text" id="fCheckEndTime" name="fCheckEndTime" class="form-control clean_C" style="width: 90px; margin-right: 10px;" /> -->
							</div>
							<div style="float:left">
								<button type="button" class="btn btn-default query" id="query">查询</button>
								<button type="button" class="btn btn-default resetting" id="resetting">重置</button>
								<button type="button" class="btn btn-default resetting" id="exporting">导出</button>
							</div>
							<div style="clear:both"></div>
						</div>
						
						<!-- 入库列表 start -->
						<div style="margin-top: 5px;">
							<table id="inTable" class="table dataTable table-hover">
							</table>
						</div>
						<!-- 入库列表 end -->
					</div>
					<!-- 审核入库模态框 start -->
					<div class="modal fade " id="inAuditModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
						<div class="modal-dialog" style="width: 890px; height: 220px;">
							<div class="modal-content" style="width: auto;">
								<div class="modal-header">
									<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
									<h4 class="modal-title" id="titleModal">入库审核</h4>
								</div>
								<div class="modal-body" style="height: auto; padding: 10px;">
									<form id="inAuditForm" class="form-group">
										<div style="display: inline-block;overflow: hidden;margin-right: 15px;" id="">
											<table border="0" cellspacing="0" cellpadding="0" class="table-condensed normal-table table-content" id="" style="width: 100%;">
												<tr>
													<td class="title"><span class="sub">入库单号：</span></td>
													<td colspan="">
														<input type="text" id="inAuditfCode" name="fCode" class="clean_c form-control" readonly="readonly">
													</td>
													<td class="title"><span class="sub">任务单号：</span></td>
													<td><input type="text" id="inAuditfBillNo" name="fBillNo" class="clean_c form-control" readonly="readonly"></td>
													<td class="title"><span class="sub">产品代码：</span></td>
													<td colspan=""><input type="text" id="inAuditfNumber" name="fNumber" class="clean_c form-control" readonly="readonly"></td>
												</tr>
												<tr>
													<td class="title"><span class="sub">产品名称：</span></td>
													<td colspan=""><input type="text" id="inAuditfName" name="fName" class="clean_c form-control" readonly="readonly"></td>
													<td class="title"><span class="sub">规格型号：</span></td>
													<td colspan="3">
														<input type="text" id="inAuditfModel" name="fModel" class="clean_c form-control" readonly="readonly">
													</td>
												</tr>
												<tr>
													<td class="title"><span class="sub">工序号：</span></td>
													<td colspan=""><input type="text" id="inAuditfOperSN" name="fOperSN" class="clean_c form-control" readonly="readonly"></td>
													<td class="title"><span class="sub">工序名称：</span></td>
													<td colspan=""><input type="text" id="inAudifOperName" name="fOperName" class="clean_c form-control" readonly="readonly"></td>
													<td class="title"><span class="sub">操作工：</span></td>
													<td colspan=""><input type="text" id="inAuditfWorkerName" name="fWorkerName" class="clean_c form-control" readonly="readonly"></td>
												</tr>
												<tr>
													<td class="title"><span class="sub">仓库：</span></td>
													<td colspan=""><input type="text" id="inAudifStock" name="fStock" class="clean_c form-control" readonly="readonly"></td>
													<td class="title"><span class="sub">库位：</span></td>
													<td colspan=""><input type="text" id="inAuditfSP" name="fSP" class="clean_c form-control" readonly="readonly"></td>
													<td class="title"><span class="sub">入库时间：</span></td>
													<td colspan=""><input type="text" id="inAuditfDate" name="fDate" class="clean_c form-control" readonly="readonly"></td>
												</tr>
												<tr>
													<td class="title"><span class="sub">入库数：</span></td>
													<td colspan=""><input type="text" id="inAuditfQty" name="fQty" class="clean_c form-control" readonly="readonly"></td>
													<td class="title"><span class="sub"><span class="requiredCss">*</span>实际入库数：</span></td>
													<td colspan=""><input type="text" id="inAuditfCheckQty" name="fCheckQty" class="clean_c form-control bj_color" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"></td>
												</tr>
												<tr>
													<td class="title" colspan="6"><span style="" class="requiredCss sub">注：带*为必填字段。</span></td>
												</tr>
											</table>
											<div style="width: 100%;position:relative;">
												<div style="text-align: center;margin-top: 12px;">
													<button type="button" class="btn btn-default" id="confirm" style="margin-right: 20px;">确定</button>
													<button type="button" class="btn btn-default" id="cancel" data-dismiss="modal">取消</button>
												</div>
											</div>
										</div>
									</form>
								</div>
							</div>
						</div>
					</div>	
					<!-- 审核入库模态框 end -->
					
					<!-- 输入接收人卡号模态框 start -->
					<div class="modal fade " id="inputCardModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
						<div class="modal-dialog" style="width: 530px; height: 220px;">
							<div class="modal-content" style="width: auto;">
								<div class="modal-header">
									<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
									<h4 class="modal-title" id="titleModal">接收人卡号</h4>
								</div>
								<div class="modal-body" style="height: auto; padding: 10px;">
									<div style="text-align: center;">
										<div>
											<span style="font-size: 20px;">接收人卡号：</span>
											<input type="text" id="fWorker" name="fWorker" class="clean-c form-control bj_color resetting modalInput" autocomplete="off" />
										</div>
										<div style="margin-top: 10px;">
											<button id="save" class="btn btn-default" type="button" style="margin-right: 20px;">确定</button>
											<button id="back" class="btn btn-default" type="button" data-dismiss="modal" style="">取消</button>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>	
					<!-- 输入接收人卡号模态框 end -->
					
					<!-- 调用showModal里的queryModal，查询行 -->
					<div th:include="Production/showModal :: queryModal" />
				</div>
			</div>
		</div>
	</div>
	<div th:include="base :: bottom" />
	<div th:include="base :: bootstrapTable" />
	<div th:include="base :: tableExport" />
	<div th:include="base :: plugIn" />
	<div th:include="base :: others" />
	<div th:include="base :: ztree" />
	<script th:src="@{js/WareHouse/processWarehousing.js}"></script>
	<script th:src="@{js/Production/showModal.js}"></script>
</body>
</html>
